<?php
/* @var $this EntryController */
/* @var $model Entry */
/* @var $form CActiveForm */
?>
<?php
$this->breadcrumbs=array(

		'Entries'=>array('index'),
	'Report-SetDate'=>array('searchM'),
	'Report',
);

$this->menu=array(
	//array('label'=>'List Entry', 'url'=>array('index')),
	array('label'=>'Manage Entry', 'url'=>array('admin')),
);


?>
<h1>  Monthly Entry Report for 
<?php echo $date?> </h1>


 <?php $et= Entry::model()->findAll('final_assement_payment_date between :a and :b', array(':a'=>$date.'-0', ':b'=>$date.'-31'));?>
                <?php if (count($et) !== 0){
                $i = 0;
                ?>
                        
                <?php foreach ($et as $row) 
        { ?>

                <?php

$this->widget('ext.widgets.DetailView4Col', array(
    'data'=>$row,
	'cssFile' => Yii::app()->request->baseUrl .'/css/col4.css',
    'attributes'=>array(
        array(
            'header'=>'Entry Details'.$row->code,
        ),
				
               // array('label'=>'PRO', 'value'=>$row->code),
				array('label'=>'Entry Control No.', 'value'=>$row->customs_entry_no),
                array('label'=>'Client', 'value'=>$row->client->name),
				'bill_of_lading_no',
			'final_assessment',
				      array('label'=>'FA Date Paid', 'value'=>$row->final_assement_payment_date),
			

                                
                ),
                
                ));
                echo '<br>';
                }
        }
		
 ?>
             

